import moment from 'moment'
//import { indexsData } from '../static/index'
import { merge } from '../../helper/helper'
// import { userListFakeData } from '../static/index'

// Reducer
//默认state
const defaultState = {
    storeDetail: {
        storeName:'',
        brandName:'',
        location:'',
        phoneNumber:'',
        storeIntro:'',
        templateId:'',
        storeLogo: '',
        storeBoardContent: '',
        remark: ''
    },
    submitEntity: {

    }
};

//根据action.type来决定将哪些状态改为action.val
function reducer(state = defaultState, action) {
    switch (action.type) {
        case 'set-dingstore-form-list':
            return merge(state, {
                storeDetail: action.val.data,
            });

    }

    return state
}

export default reducer